home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / DRAGON.ZIP / dragon / example2.pov < prev    next >
Encoding:
Text File  |  1997-07-18  |  657 b   |  45 lines

  1. #include "colors.inc"
  2.  
  3.  
  4. light_source { <10 , 20, -10> color White }
  5. light_source { <30 , 5, -10> color White }
  6. light_source { <3 , 4, -15> color White }
  7. light_source { <0 , 20, 0> color White }
  8.  
  9. camera {
  10.   location <0 , 0, -20>
  11.   look_at  <0 , 0, 0>
  12. }
  13.  
  14. background {color Gray30}
  15.  
  16. #declare DRAGON_DEPTH = 7
  17. #declare DRAGON_ANGLE = 90
  18. #declare DRAGON_SHAPE =
  19. torus {
  20.    0.7, 0.1
  21.    rotate <45, 0, 0>
  22.    translate <1, 0, 0>
  23. }
  24.  
  25.  
  26. // Number of Segments is pow(2,DRAGON_DEPTH)
  27. #declare DRAGON_UPTO = pow(2,DRAGON_DEPTH)-1
  28.  
  29. object {
  30.    #include "dragon.inc"
  31.    pigment {color Red}
  32.    translate <-DRAGON_LASTX/2, -DRAGON_LASTY/2, 0>
  33.    rotate <0, 0, 90>
  34. }
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.